package org.yenn.pattern.aliyun.j2ee.compositeentity;

import lombok.ToString;

/**
 * @Author: yerenyun
 * @Description: 步骤 3 创建组合实体。
 */
@ToString
public class CompositeEntity {
    private CoarseGrainedObject cgo = new CoarseGrainedObject();

    public void setData(String data1, String data2) {
        cgo.setData(data1, data2);
    }

    public String[] getData() {
        return cgo.getData();
    }
}
